﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Commerce.Base.Ubl.DataType
{
    /// <summary>
    /// Numeric information that is assigned or is determined by calculation, counting, or sequencing. It does not require a unit of quantity or unit of measuret.
    /// </summary>
    public class Rate : Numeric
    {
        public Rate(System.Decimal value)
            : base(value)
        { }

        public static implicit operator Rate(System.Decimal value)
        {
            return new Rate(value);
        }

        public static implicit operator System.Decimal(Rate rate)
        {
            return rate.Value;
        }
    }
}
